from sklearn.datasets import load_iris
# sklearn.datasets.load_iris()


# >> > from sklearn.datasets import load_breast_cancer
# >> > data = load_breast_cancer()
# >> > data.target[[10, 50, 85]]
# array([0, 1, 0])
# >> > list(data.target_names)
# ['malignant', 'benign']

# 加载iris花的数据
data = load_iris()
# 数据集描述
print(data.DESCR)

# 特征名
print(data.feature_names)

# 特征值
print(data.data)

# 目标名
print(data.target_names)
# 目标值
print(data.target)


